package com.wxtwxt.ruralmall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wxtwxt.ruralmall.common.utils.PageUtils;
import com.wxtwxt.ruralmall.member.entity.MemberEntity;
import com.wxtwxt.ruralmall.member.exception.EmailExistsException;
import com.wxtwxt.ruralmall.member.exception.UserNameExistsException;
import com.wxtwxt.ruralmall.member.vo.UserLoginVo;
import com.wxtwxt.ruralmall.member.vo.UserRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author Wxt
 * @email wxt23787@126.com
 * @date 2023-01-30 22:49:01
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(UserRegisterVo userRegisterVo);

    void userNameIsExist(String userName) throws UserNameExistsException;

    void emailIsExist(String email) throws EmailExistsException;

    MemberEntity login(UserLoginVo userLoginVo);

    MemberEntity login(String json) throws Exception;
}

